package com.gec.anan.map.client;

import com.gec.anan.common.result.Result;
import com.gec.anan.model.form.payment.PaymentInfoForm;
import com.gec.anan.model.vo.payment.WxPrepayVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "service-payment",path = "/payment/wxPay")
public interface WxPayFeignClient {

    //微信支付接口
    @PostMapping("/createJsapi")
    public Result<WxPrepayVo> createWxPayment(@RequestBody PaymentInfoForm paymentInfoForm);
    //查询支付状态
    @GetMapping("/queryPayStatus/{orderNo}")
    Result<Boolean> queryPayStatus(@PathVariable String orderNo);
}